Micron Document
Fox's Git Mirrors

Node / rns-mirrors / Reticulum-Go.git / files / pkg / interfaces / dns_rendezvous_js.go

Displaying Raw • Download

pkg/interfaces/dns_rendezvous_js.go 9eb1d8a4a2c2fa7c16a4586f6227eaf9f617c5cc (9eb1d8a4) Text, 1.00 KB

// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2024-2026 Quad4.io

//go:build js

package interfaces

import (
"errors"
"time"
)

// DNSRendezvousInterface is unavailable on js/wasm.
type DNSRendezvousInterface struct {
BaseInterface
}

// DNSRendezvousOptions is a js stub.
type DNSRendezvousOptions struct {
Domain string
ListenAddr string
ResolveInterval time.Duration
LookupTXT DNSLookupTXT
}

// DNSLookupTXT is a js stub type.
type DNSLookupTXT func(name string) ([]string, error)

// NewDNSRendezvousInterface returns an error on js/wasm.
func NewDNSRendezvousInterface(name string, enabled bool, opts DNSRendezvousOptions) (*DNSRendezvousInterface, error) {
return nil, errors.New("DNSRendezvousInterface is not available on js/wasm")
}

func ParseRNSTXT(txt string) (DNSRendezvousEndpoint, bool) {
return DNSRendezvousEndpoint{}, false
}

// DNSRendezvousEndpoint is a js stub.
type DNSRendezvousEndpoint struct {
Proto string
Host string
Port int
}

Served by rngit 1.5.2 - Generated in 0.02s